package com.employ.job.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.employ.common.annotation.Excel;
import com.employ.common.core.domain.BaseEntity;
import org.springframework.data.annotation.Transient;

/**
 * 职位申请对象 emp_applications
 *
 * @author ruoyi
 * @date 2025-02-24
 */
public class EmpApplications extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 申请ID */
    private Long id;

    /** 职位ID */
    @Excel(name = "职位ID")
    private Long jobId;

    /** 职位名称 */
    @Transient
    private String jobName;

    /** 学生ID */
    @Excel(name = "学生ID")
    private Long studentId;

    /** 学生名称 */
    @Transient
    private String studentName;

    /** 简历ID */
    @Excel(name = "简历ID")
    private Long resumeId;

    /** 求职信 */
    @Excel(name = "求职信")
    private String coverLetter;

    /** 申请状态 */
    @Excel(name = "申请状态")
    private String status;

    /** 申请时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date appliedAt;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setJobId(Long jobId)
    {
        this.jobId = jobId;
    }

    public Long getJobId()
    {
        return jobId;
    }
    public void setStudentId(Long studentId)
    {
        this.studentId = studentId;
    }

    public Long getStudentId()
    {
        return studentId;
    }
    public void setResumeId(Long resumeId)
    {
        this.resumeId = resumeId;
    }

    public Long getResumeId()
    {
        return resumeId;
    }
    public void setCoverLetter(String coverLetter)
    {
        this.coverLetter = coverLetter;
    }

    public String getCoverLetter()
    {
        return coverLetter;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setAppliedAt(Date appliedAt)
    {
        this.appliedAt = appliedAt;
    }

    public Date getAppliedAt()
    {
        return appliedAt;
    }


    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("jobId", getJobId())
            .append("studentId", getStudentId())
            .append("resumeId", getResumeId())
            .append("coverLetter", getCoverLetter())
            .append("status", getStatus())
            .append("appliedAt", getAppliedAt())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
